{extend name="../public/header" /}
{block name="body"}
<body>
{include file="../public/common" /}
<fieldset class="layui-elem-field site-demo-button" style="padding:10px;">
	<div class="layui-row">
		<!--  -->
		<form id="form1" class="layui-form layui-form-pane" action="{:url('')}">
			<section class="panel panel-padding">
				<div class="layui-form-item">
					<label class="layui-form-label">名称</label>
					<div class="layui-input-inline">
						<input type="text" name="name" value="{$info.name|default=''}" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">介绍</label>
					<div class="layui-input-inline">
						<textarea name="info" placeholder="请输入介绍" class="layui-textarea">{$info.info|default=''}</textarea>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">携带等级</label>
					<div class="layui-input-inline">
						<input type="text" name="lv" value="{$info.lv|default='1'}" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">成长</label>
					<div class="layui-input-inline">
						<input type="text" name="grow_up" value="{$info.grow_up|default='0'}" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">品质</label>
					<div class="layui-input-inline">
						<input type="text" name="quality" value="{$info.quality|default=''}" class="layui-input" placeholder="品质为区间设置,中间|隔开">
					</div>
				</div>
				<fieldset class="layui-elem-field">
					<legend>属性</legend>
					<div class="layui-field-box">
						<div class="layui-row">
							<div class="layui-form-item">
								<label class="layui-form-label">生命</label>
								<div class="layui-input-inline">
									<input type="text" name="hp" value="{$info.hp|default='0'}" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">攻击</label>
								<div class="layui-input-inline">
									<input type="text" name="gj" value="{$info.gj|default='0'}" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">防御</label>
								<div class="layui-input-inline">
									<input type="text" name="fy" value="{$info.fy|default='0'}" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">暴击</label>
								<div class="layui-input-inline">
									<input type="text" name="bj" value="{$info.bj|default='0'}" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">吸血</label>
								<div class="layui-input-inline">
									<input type="text" name="xx" value="{$info.xx|default='0'}" class="layui-input">
								</div>
							</div>
						</div>
					</div>
				</fieldset>
				<div class="layui-form-item">
					<label class="layui-form-label">概率</label>
					<div class="layui-input-inline">
						<input type="text" name="probability" value="{$info.probability|default='0'}" class="layui-input" placeholder="例:0.01">
					</div>
				</div>
				<!-- / -->

				<div class="layui-input-block">
					<input type="hidden" name="id" type="hidden" value="{$info.id|default=''}">
					<button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
					<button type="reset" class="layui-btn layui-btn-primary">重置</button>
				</div>
			</section>
		</form>
		<!--  -->
	</div>
</fieldset>
</body>
{/block}
{block name="script"}
<script>
layui.use(['jquery','form','laydate','upload','element'], function(){
	var $ = layui.jquery
	,laydate = layui.laydate
	,upload = layui.upload
	,element = layui.element
	,form = layui.form;

	form.render();
});
</script>
{/block}